import org.junit.*;

/**
 * Created by Administrator on 2017/5/3.
 */
public class JunitAnnotation {
    //execute before class
    @BeforeClass
    public static void beforeClass() {
        System.out.println("in before class");
    }

    //execute after class
    @AfterClass
    public static void  afterClass() {
        System.out.println("in after class");
    }
    //test case
    @Test
    public void test() {
        System.out.println("in test");
    }
    //execute before test
    @Before
    public void before() {
        System.out.println("in before");
    }

    //execute after test
    @After
    public void after() {
        System.out.println("in after");
    }
    //test case 1
    @Test
    public void testCase1() {
        System.out.println("in test case 1");
    }



    //test case 2
    @Test
    public void testCase2() {
        System.out.println("in test case 2");
    }

    //test case ignore and will not execute
    @Ignore
    public void ignoreTest() {
        System.out.println("in ignore test");
    }
}
